home *** CD-ROM | disk | FTP | other *** search
/ Amiga News 95 / Amiga News 95.iso / dpat / dpat106 / bexchange11 / install_english < prev    next >
Text File  |  1995-07-25  |  7KB  |  312 lines

  1. ;
  2. ; $VER: Installation de BGUI-Exchange v1.1 (25.7.1995)
  3. ;
  4. ;
  5. ;
  6.  
  7.         (set UserLevel.old @user-level)
  8.  
  9. ; Initialisation des messages.
  10.  
  11.         (set Language 16)
  12.  
  13.         (set #WrongKickStart "\nBGUI-Exchange need OS2.04+")
  14.  
  15.  
  16.  
  17. ; S'assurer que l'on utilise un KickStart >= à 2.04.
  18.  
  19.         (if (< (/ (getversion) 65536) 37)
  20.           (abort #WrongKickStart)
  21.         )
  22.  
  23.  
  24. (set LangueHelp "Select which language you want the documentation in.")
  25.  
  26. (set IconHelp "What kind of icons do you want:\n\n- 4 colors:          Standards icons\n- 8 colors MagicWB : Standard MagicWB\n- NewIcon :          Standard NewIcon")
  27.  
  28. (set bguiHelp "The bgui.library makes it easier to create a nice GUI.\n\nbgui.library   (C) 1993-1995 Jan van den Baard")
  29.  
  30. (set Refresh  "Choose refresh mode of window")
  31. (set Aspect   "Choose size of borders:\n\n- AutoAspect:  Keep the screen-aspect-ratio\n- Thin:        Force thin mode\n- Standard:    Like the system")
  32. (set Frame    "Choose buttons look")
  33. (set WindowPos  "Where windows should open its GUI ?")
  34. (set NewLook    "NewLook mode will create a white listview scroller")
  35.  
  36.  
  37. ;
  38. ; Répertoire de destination
  39. ; *************************
  40. ;
  41.  
  42. (set Path.source (pathonly @icon) )
  43.  
  44. (set  Path.dest
  45.         (askdir
  46.                 (prompt "\nSelect or create a directory to install BGUI-Exchange in.\n")
  47.                 (help @askdir-help)
  48.                 (default "Sys:Tools/Commodities")
  49.         )
  50. )
  51.  
  52.  
  53. ; Copie de l'executable
  54. ; **********************
  55. (copyfiles
  56.         (prompt "Copy of BGUI-Exchange")
  57.         (help @copyfiles-help)
  58.         (source Path.source)
  59.         (dest Path.dest)
  60.         (choices "BGUI-Exchange" "BGUI-Exchange.info")
  61. )
  62.  
  63.  
  64.  
  65. ; Copie de la documentation
  66. ; *************************
  67. (set Doc (askchoice
  68.             (prompt "Documentation of BGUI-Exchange")
  69.             (choices "French" "English" "Deutch" )
  70.             (help LangueHelp)
  71.             (default 1)
  72.  
  73.     )
  74. )
  75.  
  76.  
  77.     (if (= Doc 0)
  78.         (copyfiles
  79.             (source "BGUI-Exchange_FR.guide")
  80.             (dest Path.dest)
  81.             (newname "BGUI-Exchange.guide")
  82.             (infos)
  83.         )
  84.     )
  85.  
  86.     (if (= Doc 1)
  87.         (copyfiles
  88.             (source "BGUI-Exchange_ENG.guide")
  89.             (dest Path.dest)
  90.             (newname "BGUI-Exchange.guide")
  91.             (infos)
  92.         )
  93.     )
  94.  
  95.     (if (= Doc 2)
  96.         (copyfiles
  97.             (source "BGUI-Exchange_D.guide")
  98.             (dest Path.dest)
  99.             (newname "BGUI-Exchange.guide")
  100.             (infos)
  101.         )
  102.     )
  103.  
  104.  
  105.  
  106.  
  107. ; On copie les icônes
  108. ; *******************
  109. (set Icon (askchoice
  110.             (prompt "What sort of icons do you want ?")
  111.             (choices "4 couleurs" "MagicWB" "NewIcon")
  112.             (help IconHelp)
  113.     )
  114. )
  115.  
  116.     ; MagicWB ?
  117.     ; *********
  118.     (if (= Icon 1)
  119.         (
  120.         (copyfiles
  121.             (source "Icons/EXE_MagicWb.info")
  122.             (dest Path.dest)
  123.             (newname "BGUI-Exchange.info")
  124.         )
  125.  
  126.         (copyfiles
  127.             (source "Icons/Guide_MagicWb.info")
  128.             (dest Path.dest)
  129.             (newname "BGUI-Exchange.guide.info")
  130.         )
  131.         )
  132.     )
  133.  
  134.     ; NewIcon ?
  135.     ; *********
  136.     (if (= Icon 2)
  137.         (
  138.         (copyfiles
  139.             (source "Icons/EXE_NewIcon.info")
  140.             (dest Path.dest)
  141.             (newname "BGUI-Exchange.info")
  142.         )
  143.  
  144.         (copyfiles
  145.             (source "Icons/Guide_NewIcon.info")
  146.             (dest Path.dest)
  147.             (newname "BGUI-Exchange.guide.info")
  148.         )
  149.         )
  150.     )
  151.  
  152.  
  153. ; Copie de la bgui.library
  154. ; ************************
  155. (copylib
  156.     (prompt "Copy of the bgui.library")
  157.     (source "libs/bgui.library")
  158.     (dest "Libs:")
  159.     (help bguiHelp)
  160.     (confirm)
  161. )
  162.  
  163.  
  164.  
  165.  
  166. ; Parametrage du programme
  167. ; ************************
  168.  
  169. ; On prend le chemin de destination et le nom
  170. (set DestName (tackon Path.dest "BGUI-Exchange"))
  171.  
  172.  
  173. ; ***********
  174. ; * REFRESH *
  175. ; ***********
  176. (set Icon (askchoice
  177.             (prompt "What kind of refresh do you want ?")
  178.             (choices "SmartRefresh" "SimpleRefresh")
  179.             (help Refresh)
  180.     )
  181. )
  182.  
  183.     (if (= Icon 0)
  184.         (tooltype
  185.             (settooltype "SMARTREFRESH" "YES")
  186.             (dest DestName)
  187.         )
  188.     )
  189.  
  190.     (if (= Icon 1)
  191.         (tooltype
  192.             (settooltype "SMARTREFRESH" "NO" )
  193.             (dest DestName)
  194.         )
  195.     )
  196.  
  197. ; **********
  198. ; * ASPECT *
  199. ; **********
  200. (Set Icon (askchoice
  201.             (prompt "What aspect do you want for the GUI ?")
  202.             (choices "Automatic (following screen-ratio)" "Thin" "Standard")
  203.             (help Aspect)
  204.         )
  205. )
  206.     (if (= Icon 0)
  207.         (tooltype
  208.             (settooltype "ASPECT" "AUTO")
  209.             (dest DestName)
  210.         )
  211.     )
  212.  
  213.     (if (= Icon 1)
  214.         (tooltype
  215.             (settooltype "ASPECT" "THIN")
  216.             (dest DestName)
  217.         )
  218.     )
  219.  
  220.     (if (= Icon 2)
  221.         (tooltype
  222.             (settooltype "ASPECT" "STANDARD")
  223.             (dest DestName)
  224.         )
  225.     )
  226.  
  227. ; *********
  228. ; * FRAME *
  229. ; *********
  230. (Set Icon (askchoice
  231.             (prompt "What kind of frame do you want ?")
  232.             (choices "Standard" "XEN")
  233.             (help Frame)
  234.         )
  235. )
  236.     (if (= Icon 0)
  237.         (tooltype
  238.             (settooltype "FRAME" "STANDARD")
  239.             (dest DestName)
  240.         )
  241.     )
  242.  
  243.     (if (= Icon 1)
  244.         (tooltype
  245.             (settooltype "FRAME" "XEN")
  246.             (dest DestName)
  247.         )
  248.     )
  249.  
  250.  
  251. ; *******************
  252. ; * NEWLOOKSCROLLER *
  253. ; *******************
  254. (Set Icon (askchoice
  255.             (prompt "Do you want the NewLook mode for Listview scroller ?")
  256.             (choices "Yes" "No")
  257.             (default 1)
  258.             (help NewLook)
  259.         )
  260. )
  261.     (if (= Icon 0)
  262.         (tooltype
  263.             (settooltype "NEWLOOKSCROLLER" "YES")
  264.             (dest DestName)
  265.         )
  266.     )
  267.  
  268.     (if (= Icon 1)
  269.         (tooltype
  270.             (settooltype "NEWLOOKSCROLLER" "NO")
  271.             (dest DestName)
  272.         )
  273.     )
  274.  
  275.  
  276. ; ******************
  277. ; * WINDOWPOSITION *
  278. ; ******************
  279. (Set Icon (askchoice
  280.             (prompt "Where do you want the program open its GUI ?")
  281.             (choices "Center of screen" "On the mouse" "On the top-left")
  282.             (help WindowPos)
  283.         )
  284. )
  285.     (if (= Icon 0)
  286.         (tooltype
  287.             (settooltype "WINDOWPOSITION" "CENTERSCREEN")
  288.             (dest DestName)
  289.         )
  290.     )
  291.  
  292.     (if (= Icon 1)
  293.         (tooltype
  294.             (settooltype "WINDOWPOSITION" "CENTERMOUSE")
  295.             (dest DestName)
  296.         )
  297.     )
  298.  
  299.     (if (= Icon 2)
  300.         (tooltype
  301.             (settooltype "WINDOWPOSITION" "TOPLEFT")
  302.             (dest DestName)
  303.         )
  304.     )
  305.  
  306. (message "\nPlease read documentation for other options")
  307.  
  308.  
  309. (set @default-dest Path.dest )
  310.         (exit)
  311.  
  312.